package com.neu.question.service;

import com.github.pagehelper.PageInfo;
import com.neu.question.domain.QuestionnaireInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.neu.question.domain.Te;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* @author DELL
* @description 针对表【questionnaire_info】的数据库操作Service
* @createDate 2022-10-31 19:09:10
*/
public interface QuestionnaireInfoService extends IService<QuestionnaireInfo> {

    PageInfo queryQuestionnaireInfo(Map<String, Object> map);

    Map<String, Object> queryQuestionnaireById(HashMap<String, Object> map);

    int modifyQuestionnaire(HashMap<String, Object> map);

    int modifyQuestionnaireAnswerTotal(HashMap<String, Object> map);

    PageInfo queryQuestionnaireByNameAndProjectid(Map<String, Object> map);

    List<Map<String, Object>> queryQuestionnaireListById(Map<String, Object> map);

    String queryQuestionnaireIsStopStatus(String id);

    int cancelQuestionnaireProject(String questionnaireId);

    int addQuestionnaireProject(Map<String, Object> map);

    int deleteQuestionnaireInfo(String questionnaireId);

    int modifyQuestionnaireStatus(HashMap<String, Object> map);

    int modifyQuestionnaireStatusToZero(HashMap<String, Object> map);

    int addQuestionnaireInfo(Map<String, Object> map);

    int modifyQuestionnaireInfo(HashMap<String, Object> map);

    int modifyQuestionnaireBackground(HashMap<String, Object> map);

    Map<String, Object> queryQuestionnaireEndAndSmsContent(HashMap<String, Object> map);

    int addSendQuestionnaire(HashMap<String, Object> map);

    int saveSendQuestionnaire(HashMap<String, Object> map);

    List<Map<String, Object>> queryHistoryQuestionnaire(HashMap<String, Object> map);

    String addAnswerQuestionnaire(List<Map<String, Object>> list);

    List<Map<String, Object>> queryAllQuestionnaireByCreated(Map<String, Object> map);

    PageInfo queryQuestionnaireAboutSchool(HashMap<String, Object> map);

    Map<String, Object> queryQuestionnaireCount(HashMap<String, Object> map);

    PageInfo queryRecordCountAnswer(HashMap<String, Object> map);

    Map<String, Object> queryQuestionnaireQuestionTitle(HashMap<String, Object> map);

    List<Map<String, Object>> selectRecordAnswerDetail(HashMap<String, Object> map);

    List<Te> queryEndtimeQues(String time, String sqid);

    //修改问卷中的题目和题目标题
    int modifyQuestionnaireQuestion(HashMap<String, Object> map);
}
